<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>中国传媒大学设备预约平台</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="{$projectUrl}/css/admin_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$projectUrl}/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="{$projectUrl}/js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="{$projectUrl}/js/globalJsFunction.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<div class="main">
  <div class="main_resize">
    <div class="main_left">
      {include file=include/headerLogo.html}
      <div class="clr"></div>
      {include file=include/userLeftMenu.html}
      <div class="clr"></div>
    </div>
    <div class="main_right">
      {include file=include/headerLogin.html}

      <div class="clr" style="background-color:#C63; height:1px;">&nbsp;</div>
      <div>
      {include file=include/adminTopMenu.html}
      </div>
      <div class="clr">
      </div>

      <!-- 搜索用户并且进行修改 结束-->
      <div class="clr"></div>
      
      <!-- 编辑用户与课程的对应信息 -->
      <div class="clr" id="saveremoveusercoursediv"> 
      	<table width="100%" bgcolor="#FFFFFF" style="font-size:14px;">
                    <tr valign="top"  style="background-color:#C60">
                        <td>课程名字</td>
                        <td>任课教师</td>
                        <td>课代表</td>
                        <td>预约次数</td>
                        <td>加入课程时间</td>
                        <td>课程有效时间</td>
                    </tr>
                    {foreach from=$userCourses item=userCourse name=userCourseslist}
                    <tr valign="top"  onmouseout="this.style.backgroundColor=''"onmouseover="this.style.backgroundColor='#AAAAAA'">
                    	<td>{$userCourse.coursename}</td>
                      <td>{$userCourse.teachername}</td>
                      <td>{$userCourse.monitorname}({$userCourse.monitorid})</td>
                      <td>{$userCourse.booktime}</td>
                      <td>{$userCourse.createtime}</td>
                      <td>{$userCourse.begindate|truncate:10:''}到{$userCourse.enddate|truncate:10:''}</td> 
                    </tr>
                    {/foreach}
                    
                     <tr>
                    <td colspan="5" align="center">
                    <a href="course.php?pageIndex={$leftPageIndex}">&lt;</a>

                    {section start=$leftMostPageIndex loop=$pageIndex step=1 name=pagesection}
                    <a href="course.php?pageIndex={$smarty.section.pagesection.index}">
                    {$smarty.section.pagesection.index}&nbsp;&nbsp;
                    </a>
                    {/section}
                    <span style="font-size:18px;"><Strong><bold>{$pageIndex}</bold></Strong>&nbsp;</span>
                    {section start=$pageIndex+1 loop=$rightMostPageIndex+1 step=1 name=rightpagesection}
                    <a href="course.php?pageIndex={$smarty.section.rightpagesection.index}">
                    {$smarty.section.rightpagesection.index}&nbsp;&nbsp;
                    </a>
                    {/section}

                    <a href="course.php?pageIndex={$rightPageIndex}">&gt;</a>
                    </td>
                    </tr>
                    
                    </table>	
      </div>
      <!-- 编辑用户与课程的对应信息 end-->

    </div>
    
    <!-- 展示用户的课程列表 -->
    <div class="clr">
    	
    </div>
  </div>
  <div class="footer">
    {include file=include/footer.html}
  </div>
</div>
<div align=center></div></body>
</html>
